package sample;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Rectangle2D;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Screen;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception{
        Parent root = FXMLLoader.load(getClass().getResource("fmf.fxml"));
        Scene scene = new Scene(root);
        primaryStage.setTitle("FMF V1.0");
        scene.getStylesheets().add(getClass().getResource("/css/DarkTheme.css").toExternalForm());
        primaryStage.setScene(scene);
        primaryStage.show();
        /*
        Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
        primaryStage.setX(primaryScreenBounds.getMinX());
        primaryStage.setY(primaryScreenBounds.getMinY());
        primaryStage.setWidth(primaryScreenBounds.getWidth());
        primaryStage.setHeight(primaryScreenBounds.getHeight());
        */
    }


    public static void main(String[] args) {
        launch(args);
    }
}
